package com.allways.dubbo.mdm.service.vehicleModel;

import java.util.List;

import com.allways.dubbo.mdm.beans.vehicleModel.VehicleModel;

/**
 * <p>ClassName: IVehicleModelService</p>
 * <p>Description: 车型Service接口</p>
 * <p>Author: weih</p>
 * <p>Date: 2016-09-21</p>
 */
public interface IVehicleModelService {
    /**
     * <p>Description: 新增车型</p>
     * @param vehicleModel 车型对象
     * @return 受影响的记录数
     */
    int addVehicleModel(VehicleModel vehicleModel);
    
    /**
     * <p>Description: 更新车型</p>
     * @param vehicleModel 车型对象
     * @return 受影响的记录数
     */
    int updateVehicleModel(VehicleModel vehicleModel);
    
    /**
     * <p>Description: 删除车型</p>
     * @param vehicleModel 车型对象
     * @return 受影响的记录数
     */
    int deleteVehicleModel(VehicleModel vehicleModel);
    
    /**
     * <p>Description: 根据Code查询车型对象</p>
     * @param code 车型 code
     * @return 车型对象
     */
    VehicleModel getVehicleModelByCode(String code);
    
   
    
   
    /**
     * 得到车型记录数
     * @param vehicleModel 查询条件
     * @return 记录总条数
     */
    long getVehicleModelCount(VehicleModel vehicleModel);

    /**
     *  查询车型记录明细，一次性最多返回2000行车型数据
     * @param vehicleModel  查询条件
     * @param firstRow  首行
     * @param lastRow  末行
     * @return  符合条件的记录列表
     */
    List<VehicleModel> queryVehicleModels(VehicleModel vehicleModel ,int firstRow, int lastRow);
}
